package com.evry.domain.collateralitem;


import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for CollateralItem complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="CollateralItem">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="uniquekey" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="designation" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="mortgagor" type="{http://edb.com/finance/webservices/collateral/transvo/collateralItems}Mortgagor" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="mortgage" type="{http://edb.com/finance/webservices/collateral/transvo/collateralItems}Mortgage" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CollateralItem", propOrder = {
    "uniquekey",
    "type",
    "designation",
    "status",
    "mortgagor",
    "mortgage"
})
public class CollateralItem {

	@XmlTransient
	private Integer objectId;
	@XmlElement(required = true)
    protected long uniquekey;
    @XmlElement(required = true)
    protected String type;
    @XmlElement(required = true)
    protected String designation;
    @XmlElement(required = true, nillable = true)
    protected String status;
    @XmlElement(nillable = true)
    protected List<Mortgagor> mortgagors;
    @XmlElement(nillable = true)
    protected List<Mortgage> mortgages;
    protected String description;
    
    public CollateralItem(){
    	this.mortgages = new ArrayList<Mortgage>();
    	this.mortgagors = new ArrayList<Mortgagor>();
    }
    
    public Integer getObjectNumber() {
		return objectId;
	}

	public void setObjectId(Integer objectId) {
		this.objectId = objectId;
	}

	/**
     * Gets the value of the uniquekey property.
     * 
     */
    public long getUniquekey() {
        return uniquekey;
    }

    /**
     * Sets the value of the uniquekey property.
     * 
     */
    public void setUniquekey(long value) {
        this.uniquekey = value;
    }

    /**
     * Gets the value of the type property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getType() {
        return type;
    }

    /**
     * Sets the value of the type property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setType(String value) {
        this.type = value;
    }

    /**
     * Gets the value of the designation property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDesignation() {
        return designation;
    }

    /**
     * Sets the value of the designation property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDesignation(String value) {
        this.designation = value;
    }

    /**
     * Gets the value of the status property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getStatus() {
        return status;
    }

    /**
     * Sets the value of the status property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setStatus(String value) {
        this.status = value;
    }

    /**
     * Gets the value of the mortgagor property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the mortgagor property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getMortgagor().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Mortgagor }
     * 
     * 
     */
    public List<Mortgagor> getMortgagors() {
        if (mortgagors == null) {
            mortgagors = new ArrayList<Mortgagor>();
        }
        return this.mortgagors;
    }

    /**
     * Gets the value of the mortgage property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the mortgage property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getMortgage().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Mortgage }
     * 
     * 
     */
    public List<Mortgage> getMortgages() {
        if (mortgages == null) {
            mortgages = new ArrayList<Mortgage>();
        }
        return this.mortgages;
    }

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
    
    

}
